package com.jt.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller//将该类交给spring容器管理，2开启Spirng MVC的机制
public class HelloController {
/*
需求：通过http：8090/hallo要求访问Hallo.html
实现步骤
1.拦截请求

* */
    @RequestMapping("/say")
    public String say(){
        return "say";
    }
    @RequestMapping("/hello")//表示拦截
    public String Hallo(){
        return "hello";//有后缀
    }
}
